var config = {
	/**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
	set_url:{
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
	},

	/**
	 * 筛选配置
	 */
	select:[
		[{
            label: "供应商",
            type: "input",
            field: "supplier",
            placeholder: "请选择供应商",
            span: 6,
		},{
            label: "",
            type: "select",
            field: "pay",
            placeholder: "支出项目",
            option:[{
            	value:1,
            	label:'支付一',
            },{
            	value:2,
            	label:"支付二",
            }],
            span: 4,
		},{
            label: "日期",
            type: "daterange",
            field: "date",
            labelWidth: "120",
            placeholder: "选择日期",
            span: 6,
            range:"至",
            start:"开始时间",
            end:"结束时间"
		},{
            label: "付款状态",
            type: "checkbox",
            field: "pay_status",
            option:[{
            	value:1,
            	label:'未付款',
            },{
            	value:2,
            	label:"已付款",
            },{
            	value:3,
            	label:"部分付款"
            }],
            span: 8,
		}]
	],


	/**
	 * 表格配置
	 * @type {Boolean}
	 */
	selection:true,
	model:"input",
	table:[{
        label: "供应商",
        type: "input",
        field: "supplier",
        labelWidth: "140",
        sortable: false,
        amend:false,
	},{
        label: "支出类别",
        type: "input",
        field: "pay_type",
        labelWidth: "120",
        sortable: false,
        amend:false,
	},{
        label: "金额",
        type: "input",
        field: "amount",
        labelWidth: 80,
        sortable: false,
        amend:false,
	},{
        label: "未付费用",
        type: "input",
        field: "unpaid",
        labelWidth: 80,
        sortable: false,
        amend:false,
	},{
        label: "源单号",
        type: "input",
        field: "source_number",
        labelWidth: 140,
        sortable: false,
        amend:false,
	},{
        label: "源单往来单位",
        type: "input",
        field: "source_unit",
        labelWidth: 140,
        sortable: false,
        amend:false,
	},{
        label: "其他支出单编号",
        type: "input",
        field: "other_sn",
        labelWidth: 140,
        sortable: false,
        amend:false,
	},{
        label: "源单日期",
        type: "input",
        field: "source_date",
        labelWidth: 140,
        sortable: false,
        amend:false,
	},{
        label: "备注",
        type: "input",
        field: "note",
        sortable: false,
        amend:false,
	}],

	/**
	 * 分页配置
	 * 
	 */
    page: {
        size: 10,
        current: 1,
        total: 100
    }

}
export default config;